
const dataClone = [
  {
    date: '2016-05-02',
    name: '王小虎',
    address: '上海市普陀区金沙江路 1518 弄',
  }, {
    date: '2016-05-04',
    name: '王小虎',
    address: '上海市普陀区金沙江路 1517 弄',
  }, {
    date: '2016-05-01',
    name: '王小虎',
    address: '上海市普陀区金沙江路 1519 弄',
  }, {
    date: '2016-05-03',
    name: '王小虎',
    address: '上海市普陀区金沙江路 1516 弄',
  },
  {
    date: '2016-05-02',
    name: '王小虎',
    address: '上海市普陀区金沙江路 1518 弄',
  }, {
    date: '2016-05-04',
    name: '王小虎',
    address: '上海市普陀区金沙江路 1517 弄',
  }, {
    date: '2016-05-01',
    name: '王小虎',
    address: '上海市普陀区金沙江路 1519 弄',
  }, {
    date: '2016-05-03',
    name: '王小虎',
    address: '上海市普陀区金沙江路 1516 弄',
  },
  {
    date: '2016-05-02',
    name: '王小虎',
    address: '上海市普陀区金沙江路 1518 弄',
  }, {
    date: '2016-05-04',
    name: '王小虎',
    address: '上海市普陀区金沙江路 1517 弄',
  }, {
    date: '2016-05-01',
    name: '王小虎',
    address: '上海市普陀区金沙江路 1519 弄',
  }, {
    date: '2016-05-03',
    name: '王小虎',
    address: '上海市普陀区金沙江路 1516 弄',
  },
]

const myData = {
  data () {
    return {
      input: '',
      name:'',
      tableData: [{
        date: '2016-05-02',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄',
      }, {
        date: '2016-05-04',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1517 弄',
      }, {
        date: '2016-05-01',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1519 弄',
      }, {
        date: '2016-05-03',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1516 弄',
      },
      ...dataClone],
    }
  },
}

const roleData = {
  data () {
    return {
      input: '',
      name:'',
      tableData: [{
        date: '2016-05-02',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄',
      }, {
        date: '2016-05-04',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1517 弄',
      }, {
        date: '2016-05-01',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1519 弄',
      }, {
        date: '2016-05-03',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1516 弄',
      }],
    }
  },
}

const groupTree = {
  data() {
    return {
      filterText: '',
      treeGroupData: [{
        id: 1,
        label: '天津大学',
        children: [{
          id: 4,
          label: '软件技术系',
          children: [{
            id: 9,
            label: '学生处',
          }],
        }],
      },{
        id: 1,
        label: '天津医药大学',
        children: [{
          id: 4,
          label: '仁爱学院',
          children: [{
            id: 9,
            label: '学生处',
          }],
        }],
      }, {
        id: 22,
        label: '北京工业大学',
        children: [{
          id: 5,
          label: '工业学院',
          children: [{
            id: 39,
            label: '教育处',
          }],
        }, {
          id: 6,
          label: '计算机学院',
          children: [{
            id: 29,
            label: '招生办',
          }],
        }],
      }, {
        id: 3,
        label: '河北工业大学',
        children: [{
          id: 7,
          label: '工农理工学院',
          children: [{
            id: 88,
            label: '学生办',
          }],
        }, {
          id: 8,
          label: '重工业学院',
          children: [{
            id: 19,
            label: '学生会',
          }],
        }],
      }],
      defaultProps: {
        children: 'children',
        label: 'label',
      },
    }
  },
}

const navTree = {
  data() {
    return {
      filterText: '',
      treeNavData: [{
        id: 1,
        label: '首页',
        children: [{
          id: 4,
          label: '用户管理',
          children: [{
            id: 9,
            label: '创建用户',
          }],
        }],
      }, {
        id: 22,
        label: '项目管理',
        children: [{
          id: 5,
          label: '工业学院',
          children: [{
            id: 39,
            label: '教育处',
          }],
        }, {
          id: 6,
          label: '计算机学院',
          children: [{
            id: 29,
            label: '招生办',
          }],
        }],
      }, {
        id: 3,
        label: '课程管理',
        children: [{
          id: 7,
          label: '工农理工学院',
          children: [{
            id: 88,
            label: '学生办',
          }],
        }, {
          id: 8,
          label: '重工业学院',
          children: [{
            id: 19,
            label: '学生会',
          }],
        }],
      }],
      defaultProps: {
        children: 'children',
        label: 'label',
      },
    }
  },
}

export { myData, roleData, groupTree, navTree }